﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using log4net;
using Quartz;

namespace ConsoleApplication1._03_Service._01_Jobs
{
    public class ShopPerformanceServiceJob : IJob
    {
        private static ILog _logger = LogManager.GetLogger(typeof(ShopPerformanceServiceJob));

        public async Task Execute(IJobExecutionContext context)
        {
            _logger.Info("ShopPerformanceServiceJob Execute");
            await Task.Factory.StartNew(() =>
            {
                ShopPerformanceService.Calc();
            });
        }
    }
}
